/**
 * 代号:金花 
 * 文件名：ShapeFactory.java
 * 创建人：jh
 * 日期：2018年8月28日
 * 修改人：
 * 描述：
 */
package cc.pattern.shapeColor.factory;

import cc.pattern.shapeColor.Color;
import cc.pattern.shapeColor.Foot;
import cc.pattern.shapeColor.Shape;
import cc.pattern.shapeColor.abs.AbstractFactory;
import cc.pattern.shapeColor.impl.Circle;
import cc.pattern.shapeColor.impl.Rectangle;
import cc.pattern.shapeColor.impl.Square;

/**
 * 用途：形状工厂
 */
public class ShapeFactory extends AbstractFactory {

	@Override
	public Color getColor(String item) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Shape getShape(String item) {
		// TODO Auto-generated method stub
		Shape shape = null;
		switch (item) {
		case "Circle":
			shape = new Circle();
			break;
		case "Square":
			shape = new Square();
			break;
		case "Rectangle":
			shape = new Rectangle();
			break;
		default:
			break;
		}
		return shape;
	}

	@Override
	public Foot getFoot(String item) {
		// TODO Auto-generated method stub
		return null;
	}

}
